//
//  DHChectOutCell.m
//  精品酒店
//
//  Created by DIANGHONG on 2018/5/14.
//  Copyright © 2018年 DIANGHONG. All rights reserved.
//

#import "DHChectOutCell.h"

@interface DHChectOutCell()
@property (weak, nonatomic) IBOutlet UIButton *checkOutButton;
@property (weak, nonatomic) IBOutlet UIButton *noCheckOutButton;
@property(nonatomic ,strong)UIButton *currentButton;
@end

@implementation DHChectOutCell

- (IBAction)isCheckoutButtonClick:(UIButton *)sender
{
    self.currentButton.selected = NO;
    sender.selected = YES;
    self.currentButton = sender;
    
    [self.delegete checkoutCellIsCheckout:self isCheckOut:(self.currentButton == self.checkOutButton) ? @"2":@"1"];
}

- (void)awakeFromNib {
    [super awakeFromNib];
    
    
}

@end
